<%--
  Created by IntelliJ IDEA.
  User: 13083
  Date: 2019/7/3
  Time: 15:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>我的订单</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/head.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/footer.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/suercenter.css" />
</head>
<body>

    <!--uer_top-->

    <!--uer_top-->

        <table class="order_table" style="width: 800px;margin-right: 5%">
            <tbody>
            <c:forEach items="${order}" var="p">
            <!--金额 地址 状态-->
            <tr class="tr_top" style="border-top: 1px dashed black">

                <td colspan="6" >
                    <span class="number">订单金额:${p.totalprice}</span>
                    <span class="dealtime" title="订单地址：">订单地址：${p.address}</span>
                    <c:if test="${p.state=='1'}">
                        <span class="dealtime" title="交易状态：" >交易状态：交易成功 </span>
                    </c:if>
                    <c:if test="${p.state=='0'}">
                        <span class="dealtime" title="交易状态：" >交易状态：未付款 </span>
                        <%--<a href="">QU</a>--%>
                    </c:if>
                </td>
            </tr>

            <!--金额 地址 状态-->
            <!--单号 时间-->
            <tr class="tr_top">
                <td colspan="6">
                    <span class="number">订单号：${p.orderID}</span>
                    <span class="dealtime" title="下单时间">下单时间：${p.creattime}</span>
                </td>
            </tr>
            <!--单号 时间-->
            <!--订单商品-->
                <c:forEach items="${p.detail_order}" var="m">
            <tr class="tr_bd">
                <td class="goods-item">
                    <div class="p-img">
                        <a href="${pageContext.request.contextPath}/GoodsServlet?method=DetailProduct&ProductID=${m.goodsID}&PID=0" target="_blank">
                            <img class="" src="${pageContext.request.contextPath }/${m.picpath}" title="" height="60" width="60">
                        </a>
                    </div>
                    <div class="p-msg">
                        <div class="p-name">
                            <a href="" class="a-link" target="_blank" title=""></a>
                            <span class="product-name" >${m.goodsName}&nbsp;&nbsp;${m.goodsAttribute}</span>

                        </div>
                    </div>
                </td>
                <td>
                    <div class="goods_price">单价： ￥${m.onlyPrice}</div>
                </td>
                <td>
                    <div class="goods-number">数量： x${m.goodsNum}</div>
                </td>
                <td rowspan="1">
                    <td class="amount"><span>总价：  ￥${m.sumPrice}</span></td>
                </td>
            </tr>
                </c:forEach>
            <!--订单商品-->
            </c:forEach>
            </tbody>
        </table>

    <!--page-->
    <!--分页-->
   <%-- <div class="page_list margin_top20">
        <div class="page_r">
            <ul>
                <li class="pre a_btn un">
                    <span><b><</b>上一页</span>
                </li>
                <li class="a_p_num">
                    <span>1</span>
                </li>
                <li>
                    <a href=""><span>2</span></a>
                </li>
                <li class="next a_btn">
                    <a href=""><span>下一页<b>></b></span></a>
                </li>
            </ul>
        </div>
    </div>--%>
    <!--分页end-->
    <!--pageend-->

</body>
</html>
